package com.wsoft.core.lang;

import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.i18n.SessionLocaleResolver;

import java.util.Locale;

/**
 * 功能描述
 *
 * @author: juiet
 * @date: 2024年08月24日 15:04
 */
public class LocaleResolver {

    @Bean
    public org.springframework.web.servlet.LocaleResolver localeResolver(){
        SessionLocaleResolver localeResolver = new SessionLocaleResolver();
        localeResolver.setDefaultLocale(Locale.SIMPLIFIED_CHINESE);
        return localeResolver;
    }

}
